import threading
import time


def print_greeting(name, greeting):
    while True:
        print(f"{greeting},{name}!")
        time.sleep(1)


thread1 = threading.Thread(target=print_greeting,
                           name='process_load',
                           kwargs={'name': 'sx', 'greeting': 'Hello'}
                           )
thread1.start()
thread2 = threading.Thread(target=print_greeting,
                           name='process_load_2',
                           kwargs={'name': 'zyy', 'greeting': 'Hi'}
                           )
thread2.start()
# 等待第一个线程完成
thread1.join()
# 等待第二个线程完成
thread2.join()